package com.game.primitive.context;

import com.game.config.primitive.HeroModelConfig;
import com.game.config.primitive.HeroModelConfig.HeroModelCfgBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 战场中的角色
 * Created by lizhiwei on 2016/7/7.
 */
public class Hero extends Spirit {
	private Logger logger = LoggerFactory.getLogger(HeroModelConfig.class);

	private HeroModelCfgBean heroModel;

	public Hero(int heroModelId) {
		heroModel = HeroModelConfig.getInstance().getHeroModel(heroModelId);
		if (heroModel == null) {
			logger.error(String.format("%s heroModelId 没有对应的英雄模型，请检查", heroModelId), new Exception("没有对应的英雄模型"));
		}
	}
}
